package com.ice.demo.generic.classs;

public class WrapperGenericTest {
    public static void main(String[] args) {

        Wrapper<Student> studentWrapper = new Wrapper<>();

        studentWrapper.set(new Student("小王", "男"));
        System.out.println(studentWrapper.get());

        Wrapper<Integer> integerWrapper = new Wrapper<>();
        integerWrapper.set(123);
        System.out.println(integerWrapper.get());


    }
}


record Student(String name, String gender) {}